package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserEcologyHatchCollectionRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.ecology.AdminEcologyRecycleRecordsVO;
import com.sc.nft.enums.UserEcologyHatchCollectionTypeRecordsEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 用户-生态-孵化-藏品记录表(sc_user_ecology_hatch_collection_records)数据Mapper
 *
 * @author Sun
 * @since 2023-10-18 14:32:54
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserEcologyHatchCollectionRecordsMapper extends BaseMapper<UserEcologyHatchCollectionRecords> {

    Page<AdminEcologyRecycleRecordsVO> ecologyRecycleRecords(Page page,@Param("collectionName") String collectionName, @Param("numbering") String numbering, @Param("userTel")String userTel,
                                                             @Param("type") Integer type, @Param("beginTime") String beginTime, @Param("endTime") String endTime,@Param("collectionStatus") Integer  collectionStatus);

    Boolean initialize(@Param("userId") Long userId, @Param("ecologyHatchId") Long ecologyHatchId, @Param("type") Integer type, @Param("userEcologyHatchRecordsId") Long userEcologyHatchRecordsId,@Param("limitCount")Integer limitCount);

    Integer getNumByTypeAndHatchId(@Param("type") int type, @Param("ecologyHatchId") Long ecologyHatchId);

}
